package com.knowledgegraph.zhongyao.mapper;

import java.util.List;
import com.knowledgegraph.zhongyao.domain.Medicine;

/**
 * 药材维护Mapper接口
 * 
 * @author ruoyi
 * @date 2023-07-03
 */
public interface MedicineMapper 
{
    /**
     * 查询药材维护
     * 
     * @param medicineKey 药材维护主键
     * @return 药材维护
     */
    public Medicine selectMedicineByMedicineKey(String medicineKey);

    /**
     * 查询药材维护列表
     * 
     * @param medicine 药材维护
     * @return 药材维护集合
     */
    public List<Medicine> selectMedicineList(Medicine medicine);

    /**
     * 新增药材维护
     * 
     * @param medicine 药材维护
     * @return 结果
     */
    public int insertMedicine(Medicine medicine);

    /**
     * 修改药材维护
     * 
     * @param medicine 药材维护
     * @return 结果
     */
    public int updateMedicine(Medicine medicine);

    /**
     * 删除药材维护
     * 
     * @param medicineKey 药材维护主键
     * @return 结果
     */
    public int deleteMedicineByMedicineKey(String medicineKey);

    /**
     * 批量删除药材维护
     * 
     * @param medicineKeys 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMedicineByMedicineKeys(String[] medicineKeys);
}
